﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace Flipmind.Xero.Internal
{
        [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.42")]
        [System.SerializableAttribute()]
        [System.Diagnostics.DebuggerStepThroughAttribute()]
        [System.ComponentModel.DesignerCategoryAttribute("code")]
        [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)]
        [System.Xml.Serialization.XmlRootAttribute(Namespace = "", ElementName="Response", IsNullable = false)]
        public partial class GetAccountsResponse
        {

            private string idField;

            private string statusField;

            private string providerNameField;

            private System.DateTime dateTimeUTCField;

            private Account[] accountsField;

            /// <remarks/>
            public string ID
            {
                get
                {
                    return this.idField;
                }
                set
                {
                    this.idField = value;
                }
            }

            /// <remarks/>
            public string Status
            {
                get
                {
                    return this.statusField;
                }
                set
                {
                    this.statusField = value;
                }
            }

            /// <remarks/>
            public string ProviderName
            {
                get
                {
                    return this.providerNameField;
                }
                set
                {
                    this.providerNameField = value;
                }
            }

            /// <remarks/>
            public System.DateTime DateTimeUTC
            {
                get
                {
                    return this.dateTimeUTCField;
                }
                set
                {
                    this.dateTimeUTCField = value;
                }
            }

            /// <remarks/>
            [System.Xml.Serialization.XmlArrayItemAttribute("Account", IsNullable = false)]
            public Account[] Accounts
            {
                get
                {
                    return this.accountsField;
                }
                set
                {
                    this.accountsField = value;
                }
            }
        }


        /// <remarks/>
        [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.42")]
        [System.SerializableAttribute()]
        [System.Diagnostics.DebuggerStepThroughAttribute()]
        [System.ComponentModel.DesignerCategoryAttribute("code")]
        [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)]
        [System.Xml.Serialization.XmlRootAttribute(Namespace = "", ElementName = "Response", IsNullable = false)]
        public partial class GetContactResponse : IXeroResponse
        {

            private string idField;

            private string statusField;

            private string providerNameField;

            private System.DateTime dateTimeUTCField;

            private ResponseContact contactField;

            public List<Error> Errors {
                get
                {
                    if (contactField != null)
                    {
                        return contactField.Errors;
                    }
                    else
                    {
                        return null;
                    }
                }
            }

            /// <remarks/>
            public string ID
            {
                get
                {
                    return this.idField;
                }
                set
                {
                    this.idField = value;
                }
            }

            /// <remarks/>
            public string Status
            {
                get
                {
                    return this.statusField;
                }
                set
                {
                    this.statusField = value;
                }
            }

            /// <remarks/>
            public string ProviderName
            {
                get
                {
                    return this.providerNameField;
                }
                set
                {
                    this.providerNameField = value;
                }
            }

            /// <remarks/>
            public System.DateTime DateTimeUTC
            {
                get
                {
                    return this.dateTimeUTCField;
                }
                set
                {
                    this.dateTimeUTCField = value;
                }
            }

            /// <remarks/>
            public ResponseContact Contact
            {
                get
                {
                    return this.contactField;
                }
                set
                {
                    this.contactField = value;
                }
            }
        }


}
